package com.hailin.picviewer;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class PicViewer extends MIDlet {

    private static MIDlet s_mid;

    public PicViewer() {
        initSelf();
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
    }

    protected void pauseApp() {

    }

    protected void startApp() throws MIDletStateChangeException {
        Display.getDisplay(this).setCurrent(new SplashScreen1());
        try {
					Thread.sleep(3000);
				} catch (InterruptedException e) {}
				Display.getDisplay(this).setCurrent(new SplashScreen2());
				try {
					Thread.sleep(3000);
				} catch (InterruptedException e) {}
				Display.getDisplay(this).setCurrent(MainForm.getMainForm());
    }

    public static MIDlet getMIDlet() {
        return s_mid;
    }

    private void initSelf() {
        s_mid = this;
    }
    
    public static Display getDisplay(){
        return Display.getDisplay(s_mid);
    }
}
